<template>
  <div class="box" :style="{ backgroundColor: props.color }">
    {{ props.text }}
    <!-- <div class="little-box" :style="{ backgroundColor: props.color }"></div> -->
    <!-- <div class="hidden-box"></div> -->
  </div>
</template>

<script lang="ts" setup>
const props = defineProps({
  text: {
    type: String,
    default: 'no data'
  },

  color: {
    type: String,
    deafult: '#fff'
  }
})
</script>

<style lang="scss" scoped>
.box {
  position: relative;
  display: inline-block;
  padding: 8px 20px 11px 20px;
  border-radius: 4px;
  position: relative;
  .little-box {
    width: 60px;
    height: 24px;
    position: absolute;
    left: 0px;
    bottom: -32px;
    border-radius: 4px;
  }
  .hidden-box {
    width: 10px;
    height: 8px;
    background-color: #2c2d2d;
    position: absolute;
    left: 29px;
    bottom: -8px;
  }
}
</style>